<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path=request.getScheme()+"://"+request.getServerName()+":"+
	request.getServerPort()+request.getContextPath()+"/";
	pageContext.setAttribute("path", path);
%>
<!DOCTYPE html>
<html>
<head>
    <title>添加新药</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>
    <script type="text/javascript" src="../Js/ckeditor/ckeditor.js"></script>
 	<script type="text/javascript" src="../Js/My97DatePicker/calendar.js"></script>
 	<script type="text/javascript" src="../Js/My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
    </style>
    <script src="../Js/laydate/laydate.js"></script>
    <script type="text/javascript">
    $(function () {       
		$('#backid').click(function(){
				window.location.href="${path}drug?method=findDrugByPage";
		 });
    });
   
    </script>
</head>
<body>
<form action="${path }/drugServlet.do" method="post" class="definewidth m20">
<input type="hidden" name="method" value="insertDrug">
<table class="table table-bordered table-hover definewidth m10">
    <tr>
        <td width="10%" class="tableleft">药品编号</td>
        <td><input type="text" name="did" value=""/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">药品名称</td>
        <td><input type="text" name="dname" value=""/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">药品类别</td>
        <td>
        	<select name="dclass">
        		<option value="专科用药">专科用药</option>
        		<option value="家庭用药">家庭用药</option>
        		<option value="滋补保健">滋补保健</option>
        		<option value="医疗器械">医疗器械</option>
        		<option value="美容护理">美容护理</option>
        	</select>
        </td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">售价</td>
        <td><input type="text" name="dprice" value=""/></td>
	</tr>
	<tr>
        <td width="10%" class="tableleft">生产日期</td>
        <td><input type="text" id="pro" name="prodate" class="Wdate" autocomplete="off" onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d'})" value=""/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">过期日期</td>
        <td><input type="text" id="ex" name="exdate" class="Wdate" autocomplete="off" onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd'})" value="" /></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">数量（盒）</td>
        <td><input type="text" name="requantity" value=""/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">生产商</td>
        <td><input type="text" name="sname" value=""/></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">功效</td>
        <td><input type="text" name="function" value=""/></td>
    </tr>
    <tr>
        <td colspan="2">
			<center>
			<input name="save" id="save" type="submit" class="btn btn-primary" value="保存"/>
			 &nbsp;&nbsp;
			 <button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
			</center>
		</td>
    </tr>
</table>
</form>
</body>
</html>